package com.class04.override.test2;

import com.class04.override.test1.Order;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/8 16:14
 */
public class SubOrder extends Order {
    public void method() {
        orderPublic = 1;
        orderProtected = 1;
        methodPublic();
        methodProtected();
//       不能访问
//        orderPrivate = 1;
//        orderDefault = 1;
//
//        methodPrivate();
//        methodDefault();

    }

    public static void main(String[] args) {
        SubOrder subOrder = new SubOrder();
        subOrder.orderProtected = 1;
        subOrder.orderPublic = 1;
        subOrder.methodPublic();
        subOrder.methodProtected();


    }
}
